onEvent('recipes', (event) => {
    //灌注
    var alloy_infusedRecipes = [
        {
            input: '#quark:crystal',
            output: 'quark:violet_crystal',
            gas: "mekanism:refined_obsidian",
            size: 100
        },
        {
            input: 'refinedstorage:destruction_core',
            output: 'mekanism:alloy_infused',
            gas: "mekanism:redstone",
            size: 100
        },
        {
            input: 'pneumaticcraft:printed_circuit_board',
            output: 'create:precision_mechanism',
            gas: "mekanism:redstone",
            size: 100
        },
        {
            input: 'refinedstorage:construction_core',
            output: 'mekanism:alloy_reinforced',
            gas: "mekanism:diamond",
            size: 100
        },
        {
            input: 'mekanism:module_base',
            output: 'mekanism:basic_control_circuit',
            gas: "mekanism:redstone",
            size: 100
        },
        {
            input: 'thermal:fluid_cell_frame',
            output: 'thermal:fluid_cell',
            gas: "mekanism:gold",
            size: 200
        },
        {
            input: 'thermal:energy_cell_frame',
            output: 'thermal:energy_cell',
            gas: "mekanism:gold",
            size: 200
        },
        {
            input: 'thermal:upgrade_augment_3',
            output: 'mekanism:basic_tier_installer',
            gas: "mekanism:refined_obsidian",
            size: 200
        },




    ];
    alloy_infusedRecipes.forEach((i) => {
        event.recipes.mekanismMetallurgicInfusing(i.output, i.input, i.gas, i.size);
    });


    event.recipes.mekanismEnriching('mekanism:enriched_redstone', 'minecraft:redstone');

    let crushingrecipes = [
        // {
        //     output: 'emendatusenigmatica:osmium_chunk',
        //     input: 'quark:violet_crystal'
        // },
        {
            output: 'emendatusenigmatica:uranium_dust',
            input: 'mekanism:crystal_uranium'
        },
        {
            output: 'emendatusenigmatica:osmium_dust',
            input: 'mekanism:crystal_osmium'
        },
        {
            output: '4x mekanism:bio_fuel',
            input: 'kubejs:softclay_cake'
        },
        {
            input: 'mekanism:quantum_entangloporter',
            output : '8x fluxnetworks:flux_dust'
        },
        {
            input : 'minecraft:lapis_lazuli',
            output : 'thermal:lapis_dust'
        }

    ];

    crushingrecipes.forEach((i) => {
        event.recipes.mekanismCrushing(i.output, i.input);
    });



    //revent.recipes.mekanismProcessing({gas: 'mekanism:dirty_uranium', amount: 200},'kubejs:polluted_dirt',{gas: 'mekanism:sulfuric_acid', amount: 200})


    /*"mekanism:processing/uranium/slurry/dirty":{"recipe":{
        "type":"mekanism:dissolution",
        "itemInput":{"ingredient":{"tag":"forge:ores/uranium"}},
        "gasInput":{"amount":1,"gas":"mekanism:sulfuric_acid"},
        "output":{"slurry":"mekanism:dirty_uranium","amount":1000,"chemicalType":"slurry"}},
        "inputs":[{"tag":"forge:ores/uranium"}]}*/

    /**
     * "mekanism:processing/uranium/hydrofluoric_acid":
     * {"recipe":{"type":"mekanism:dissolution","itemInput":
     * {"ingredient":{"tag":"forge:gems/fluorite"}},"gasInput":
     * {"amount":1,"gas":"mekanism:sulfuric_acid"},
     * "output":{"gas":"mekanism:hydrofluoric_acid","amount":1000,"chemicalType":"gas"}},
     * "inputs":[{"tag":"forge:gems/fluorite"}]}
     */

    event.custom({
        type: 'mekanism:dissolution',
        itemInput: { "ingredient": { "item": "kubejs:polluted_dirt" } },
        gasInput: { "amount": 1, "gas": "mekanism:sulfuric_acid" },
        output: { "slurry": "mekanism:dirty_uranium", "amount": 4000, "chemicalType": "slurry" },
        // inputs: [{"tag":"forge:ores/uranium"}]
    }).id("nr2:mek/dissolution/polluted_dirt");

    /*
    "mekanism:processing/uranium/hydrofluoric_acid":
    {"recipe":{"type":"mekanism:dissolution",
    "itemInput":{"ingredient":{"tag":"forge:gems/fluorite"}},
    "gasInput":{"amount":1,"gas":"mekanism:sulfuric_acid"},
    "output":{"gas":"mekanism:hydrofluoric_acid","amount":1000,"chemicalType":"gas"}},
    "inputs":[{"tag":"forge:gems/fluorite"}]}
    */
    event.custom({
        type: 'mekanism:dissolution',
        itemInput: { "ingredient": { "item": 'minecraft:glowstone' } },
        gasInput: { "amount": 1, "gas": "mekanism:sulfuric_acid" },
        output: { "gas": "mekanism:hydrofluoric_acid", "amount": 4000, "chemicalType": "gas" },
    }).id("nr2:mek/dissolution/glowstone");

    event.custom({
        type: 'mekanism:reaction',
        itemInput: { "ingredient": { "item": 'mekanism:alloy_reinforced' } },
        fluidInput: { "amount": 1000, "tag": "forge:experience" },
        gasInput: { "amount": 1000, "gas": "mekanism:plutonium" },
        duration: 100,
        itemOutput: { "item": 'mekanism:alloy_atomic' },
        gasOutput: { "gas": "mekanism:spent_nuclear_waste", "amount": 2000 },
    }).id("nr2:mek/reaction/alloy_atomic");

    event.custom({
        type: 'mekanism:reaction',
        itemInput: { "ingredient": { "item": 'mekanism:substrate' } },
        fluidInput: { "amount": 1000, "tag": "forge:experience" },
        gasInput: { "amount": 1000, "gas": "mekanism:polonium" },
        duration: 100,
        itemOutput: { "item": 'mekanism:pellet_polonium' },
        gasOutput: { "gas": "mekanism:spent_nuclear_waste", "amount": 2000 },
    }).id("nr2:mek/reaction/pellet_polonium");


    event.custom({
        type: "mekanism:nucleosynthesizing",
        itemInput: { "ingredient": { "item": 'minecraft:dead_bush' } },
        gasInput: { "amount": 100, "gas": "mekanism:antimatter" },
        output: { "item": 'minecraft:oak_sapling' },
        duration: 1000
    }).id("nr2:mek/reaction/oak_sapling");

    event.custom({
        type: "mekanism:nucleosynthesizing",
        itemInput: { "ingredient": { "item": 'minecraft:wither_skeleton_skull' } },
        gasInput: { "amount": 100, "gas": "mekanism:antimatter" },
        output: { "item": 'minecraft:nether_star' },
        duration: 1000
    }).id("nr2:mek/reaction/nether_star");

    event.custom({
        type: "mekanism:nucleosynthesizing",
        itemInput: { "ingredient": { "item":'draconicevolution:draconium_ingot' } },
        gasInput: { "amount": 1, "gas": "mekanism:antimatter" },
        output: { "item":  'draconicevolution:awakened_draconium_ingot'},
        duration: 1000
    }).id("nr2:mek/reaction/draconium_ingot");

    event.custom({
        type: "mekanism:nucleosynthesizing",
        itemInput: { "ingredient": { "item":'draconicevolution:awakened_crafting_injector' } },
        gasInput: { "amount": 500, "gas": "mekanism:antimatter" },
        output: { "item":  'draconicevolution:chaotic_crafting_injector'},
        duration: 1000
    }).id("nr2:mek/reaction/chaotic_crafting_injector");


    event.custom({
        "type":"mekanism:crystallizing",
        "chemicalType":"gas",
        "input":{"amount":666,"gas":"mekanism:antimatter"},
        "output":{"item":"mekanism:pellet_antimatter"},
        "outputs":[{"item":"mekanism:pellet_antimatter","count":1}]
    }).id("nr2:mek/reaction/antimatterfrom_gas");


    event.custom({
        "type":"mekanism:oxidizing",
        "input":{"ingredient":{"tag":"forge:pellets/antimatter"}},
        "output":{"gas":"mekanism:antimatter","amount":664},
        "inputs":[{"tag":"forge:pellets/antimatter"}]
    }).id("nr2:mek/reaction/from_pellet");

    //"mekanism:oxidizing/sulfur_dioxide":{"recipe":{"type":"mekanism:oxidizing",
    //"input":{"ingredient":{"tag":"forge:dusts/sulfur"}},"output":{"gas":"mekanism:sulfur_dioxide","amount":100}},"inputs":[{"tag":"forge:dusts/sulfur"}]}
    event.custom({
        "type":"mekanism:oxidizing",
        "input":{"ingredient":{"tag":"forge:dusts/sulfur"}},
        "output":{"gas":"mekanism:sulfuric_acid","amount":555},
        "inputs":[{"tag":"forge:dusts/sulfur"}]
    }).id("nr2:mek/reaction/sulfur");



    /**
     * "mekanismgenerators:separator/heavy_water":{"recipe":{
     * "type":"mekanism:separating",
     * "input":{"amount":2,"tag":"forge:heavy_water"},
     * "energyMultiplier":2,
     * "leftGasOutput":{"gas":"mekanismgenerators:deuterium","amount":2},
     * "rightGasOutput":{"gas":"mekanism:oxygen","amount":1}}}
     * 
     */
    event.custom({
        "type":"mekanism:separating",
        "input":{"amount":2,"tag":"forge:heavy_water"},
        "energyMultiplier":2,
        "leftGasOutput":{"gas":"mekanismgenerators:deuterium","amount":20},
        "rightGasOutput":{"gas":"mekanism:oxygen","amount":1}
    }).id("nr2:mek/reaction/oxygendeuterium");
    /**
     * "mekanismgenerators:activating/tritium":{"recipe":{
     * "type":"mekanism:activating",
     * "input":{"amount":1,"gas":"mekanism:lithium"},
     * "output":{"gas":"mekanismgenerators:tritium","amount":1}}},
     */
    event.custom({
        "type":"mekanism:activating",
        "input":{"amount":1,"gas":"mekanism:lithium"},
        "output":{"gas":"mekanismgenerators:tritium","amount":10},
    });

    /**
     * "mekanism:processing/uranium/fissile_fuel":{"recipe":{
     * "type":"mekanism:centrifuging",
     * "input":{"amount":1,"gas":"mekanism:uranium_hexafluoride"},
     * "output":{"gas":"mekanism:fissile_fuel","amount":1}}}
     */
    // event.custom({
    //     "type":"mekanism:centrifuging",
    //     "input":{"amount":1,"gas":"mekanism:uranium_hexafluoride"},
    //     "output":{"gas":"mekanism:fissile_fuel","amount":10}
    // });

});